//
//  JWTNewLabelFrame.m
//  JWT
//
//  Created by ndm on 17/2/12.
//  Copyright © 2017年 com.jwtsoft. All rights reserved.
//

#import "JWTNewLabelFrame.h"

@implementation JWTNewLabelFrame
SHARED_INSTANCE_IMPLEMENTATION(JWTNewLabelFrame);

/**
 重新计算label的frame
 */
-(UILabel * ) newSizeFromLabel:(UILabel *) label{
    CGSize size = [label getLabelContentSize];
    if (size.height < label.height) {
        label.frame = CGRectMake(label.left, label.top,label.width,label.height);
    }else{
        label.frame = CGRectMake(label.left, label.top, label.width, size.height);
    }
    return label;
}
@end
